


<div class="comments_content">

<style media="screen" type="text/css">
	.edit_a{
		margin-left:270px;
	}
</style>
{foreach $data as $val}
<dl class="nobg">
	<dd class="date">
		<h2>{get_user($val.user_id, 'user_name')}</h2>
		<p>Posted : {date('m/d/Y')}</p>
	</dd>
	<dd class="content">
		<h2>{$val.title}</h2>
		<p>{$val.content}</p>
		{if ((time() - $val.add_time) < 1800) && ($val.user_id == $smarty.session.user.id)}
		<a cid="{$val.id}" class="edit_a" href="#">edit</a>
		{/if}
	</dd>
</dl>
{foreachelse}
<p class="nocomments">There are currently no comments for this asset.</p>
{/foreach}
</div>
<div class="comments_content_bottom"></div>

{if $pager->getPages() > 1}
<div class="page2"><p>
  {if $pager->getPage() > 1}
      <a href="{$pager->link($pager->prev())}">Prev</a>
  {/if}
  
	{foreach $pager->getPagesArray(10) as $val}
	  {if $pager->getPage() == $val}
	    {$val}
	  {else}
	  <a href="{$pager->link($val)}">{$val}</a>
	  {/if}
	{/foreach}
	
  {if $pager->getPage() < $pager->getPages()}
      <a href="{$pager->link($pager->next())}">Next</a>
  {/if}
</p></div>
{/if}
